MPSetExceptionHandler

Sets an exception handler for a task.

OSStatus MPSetExceptionHandler (
                     MPTaskID task,
                     MPQueueID exceptionQ);
task
A value of type MPTaskID that specifies the task to associate with the exception handler.

exceptionQ
A value of type MPQueueID that specifies the message queue to which an exception message will be sent.

function result
A result code. See Result Codes for a list of possible values.
DISCUSSION
When an exception handler is set and an exception occurs, the task is suspended and a message is sent to the message queue specified by exceptionQ . The message contains the following information:

VERSION NOTES
Introduced with Multiprocessing Services 2.0.


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)